<?php
require_once 'application/core/mysql.class.php';
class Singleton
{   
    private static $conn = null;
    private function __construct(){}
    public static function getInstance($db_name){
        if(self::$conn === null){
            self::$conn = new mysql($db_name);
        }
        return self::$conn;
    }
    private function __clone(){}
}
